package com.sdgakj.dto.base;

public enum ResCode {

	//----------------------接口------------------------
	//统一提示
    SUCCESS(1, "请求成功"), //
    ERROR(2, "系统繁忙"), //
    ERROR_PARAM(3, "参数错误"), //
    VERSION_UPDATE(4, "请升级app最新版本后再次尝试此功能"), //

    //业务逻辑
    //车载信息服务错误1xxx
    CGS_NO_DATA(1001, "未查询到该车辆信息，请核对您的车牌号是否正确，或者联系客服。"), 
//    CGS_EMPTY_DATE_OR_AMOUNT(1002, "抱歉， 缴费周期/金额未设置，请联系客服。"), 
    
    // 支付失败错误
    PAY_ORDER_ALREADYPAY(2001, "已支付"), PAY_ORDER_FAILED(2002, "支付失败"),
    NEED_USERID(3001, "用户ID不能为空！"), NEED_OPENID(3002, "用户openID不能为空！请先绑定微信号！"),
    NEED_TYPE(3003, "订单类型不能为空！"), FIND_ORDER_FAILED(3003, "订单不存在！"),
    ORDER_PRICE_ERROR(3004, "订单价格错误！"),
    ORDER_NO_CARGPSINFO(3005, "车载信息不存在！"),
    ORDER_NO_SECURITYINFO(3006, "安全检测项目不存在！"),
    ORDER_NO_FUELINFO(3007, "环保检测项目不存在！"),
    ORDER_NO_COUPONINFO(3008,"代金券不存在!"),
    ORDER_COUPON_STATE_ERROR(3009,"代金券状态不正确!"),
    //使用积分
    ORDER_POINTS_NOT_ENOUGH(3010,"用户积分不足!"),
    ORDER_POINTS_AND_COUPON_TOGETHER_USED(3011,"积分和代金券不能够同时使用!"),
    ORDER_POINTS_PRICE_ERROR(3012,"积分金额不正确!"),



    //feed 4xxx
 	//FEED_CUSTOMER_NO_PERMISSION(4001, "账号已被删除或者冻结"),
 	FEED_REPLY_CUSTOMER_NO_PERMISSION(4002, "回复账号已被删除或者冻结"),
    FEED_NOT_EXIST(4003, "该信息已被删除，无法评论"),
    FEED_COMMENT_NOT_EXIST(4004, "评论不存在或已被删除"),
    FEED_TAG_NOT_EXIST(4005, "标签不存在或已被删除"),
    
    CALLSERVICE_CUSTOMER_NO_PERMISSION(5001, "您的账号已已经删除或者冻结"),
    CALLSERVICE_CALLED_CUSTOMER_NO_PERMISSION(5002, "您拨打的用户账号已经删除或者冻结"),
    CALLSERVICE_TRUCK_ERROR_STATUS(5003, "车辆状态异常"),
    CALLSERVICE_NETWORK_ERROR(5004, "呼叫中心网络繁忙"),
    CALLSERVICE_CALL_FAILED(5005, "呼叫中心请求失败"),
    CALLSERVICE_PURCHASETRUCK_ERROR_STATUS(5006, "求购信息已经删除"),
    CALLSERVICE_CALLBACK_SECURITY_ERROR(5007, "呼叫中心回调短信安全认证失败"),
    CALLSERVICE_INFO_RESET_SECURITY_ERROR(5008, "呼叫中心回调短信安全认证失败"),

    
    //Common 9xxx
    COMMON_CUSTOMER_NO_PERMISSION(9001, "账号已被删除或者冻结"),
	COMMON_FACTOYRNOTICE(9002, "人要体检，车要年检！买了车之后，除了日常维修保养外，还需要去验车场进行年检的。下面为您提供几点验证注意事项：|1.在车辆检验有效期前三个月之内|2.没有未处理的交通违法行为|"+
"3.车辆外观干净整洁|4.各种灯具、仪表齐全有效|5.灭火器和反光警示牌|6.携带行驶证和在有效期内的交强险副本|7.刹车、手刹性能良好"),
	COMMON_MSG_API_ERROR(9003, "短信请求失败"),
 	
    //----------------------接口------------------------
    
    
    //----------------------管理后台------------------------
    //统一提示
    MGR_SUCCESS(90001, "操作成功"), //
    MGR_ERROR(90002, "操作失败"),
    //可以不用设置错误代码
    MGR_ANY(90099, "设置任意信息"),
    
    //用户反馈92xxx
    MGR_FB_EMPTY_REVIEW(92001, "处理意见不能为空"),
    MGR_FB_LONG_REVIEW(92002, "处理意见汉字不能多于50个"),
    
    
    // Feed发帖93xxx
    MGR_FEED_EMPTY_CUSTOMER(93001,"发布人不能为空"),
    MGR_FEED_NOT_EXIST(93002,"帖子不存在"),
    MGR_FEED_SETTOP_OVER_LIMIT(93003,"只能对2条记录置顶，取消已置顶消息可以再次操作置顶");
	//----------------------管理后台------------------------
    
    public int resCode;
    public String resMsg;

    ResCode(int resCode, String resMsg) {
        this.resCode = resCode;
        this.resMsg = resMsg;
    }

	public int getResCode() {
		return resCode;
	}

	public void setResCode(int resCode) {
		this.resCode = resCode;
	}

	public String getResMsg() {
		return resMsg;
	}

	public void setResMsg(String resMsg) {
		this.resMsg = resMsg;
	}

}
